package com.lieve.bpm.config;

import org.activiti.engine.cfg.ProcessEngineConfigurator;
import org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl;

import java.io.InputStream;

import static org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.DEFAULT_MYBATIS_MAPPING_FILE;
import static org.activiti.engine.impl.util.ReflectUtil.getResourceAsStream;

/**
 * @author sunyoboy
 * 2020/10/31
 */
public class LieveProcessEngineConfigurator implements ProcessEngineConfigurator {

    @Override
    public void beforeInit(ProcessEngineConfigurationImpl processEngineConfiguration) {
//        processEngineConfiguration
        processEngineConfiguration.setDatabaseSchemaUpdate("true");
    }

    @Override
    public void configure(ProcessEngineConfigurationImpl processEngineConfiguration) {

    }

    @Override
    public int getPriority() {
        return 0;
    }
}
